#pragma once
#include <SFML/Graphics.hpp>
#include "tileViewbox.h"

class tileSelector
{
	static const int m_tile_size = 8;
	int m_current_tile;
	sf::Sprite m_tilesheet_sprite;
	tileViewbox m_viewBox;
	sf::Vector2f m_position;
	sf::RectangleShape m_selected_rect;
public:
	tileSelector();
	//~tileSelector();
	void setTileSheet(sf::Texture* p_tilesheet);
	void setBorderSheet(sf::Texture* p_tilesheet);
	void processClick(float mouse_x, float mouse_y);
	void selectTile(int tileX, int tileY);
	void draw(sf::RenderWindow*);
	void setViewBoxPosition(int x, int y);
	void setPosition(int x, int y);
};